//------------------------------------------------------------------------------
// <copyright file="IUpdatesDownloader.cs" company="Damian Antonowicz">
//       copyright © 2010 Damian Antonowicz
// </copyright>
// <author>Damian Antonowicz</author>
// <email>poczta@damianantonowicz.pl</email>
//------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace DAnton.Blocks.Updater
{
    public interface IUpdatesDownloader
    {
        event EventHandler<DownloadUpdatesProgressChangedEventArgs> DownloadUpdatesProgressChanged;
        event EventHandler<AsyncCompletedEventArgs> DownloadUpdatesCompleted;

        bool IsBusy { get; set; }

        void DownloadUpdatesAsync(string downloadUrl, string updaterPath);
        void CancelAsync();
    }
}
